#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int n, a[N], nums = 0;
int main () {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    scanf("%d", &n);
    for (int i = 1, x = 0; i <= n; i++) {
        scanf("%d", &x);
        a[x]++;
    }
    for (int i = 1; i <= N - 1; i++) if (a[i]) nums++;
    printf("%d", n - nums);
}
